import { request } from '@pkg/request/src';

export enum Api {
  page = '/front/user/page',
  saveCompanyUser = '/companyUser/saveCompanyUser',
  setCompanyUserStatus = '/companyUser/setCompanyUserStatus',
  resetPassWord = '/companyUser/resetPassWord',
}

export const setCompanyUserStatus = params =>
  request.post(
    {
      url: Api.setCompanyUserStatus,
      params: params,
    },
    { errorMessageMode: 'message', successMessageMode: 'success' },
  );

export const resetPassWord = params =>
  request.post(
    {
      url: Api.resetPassWord,
      params: params,
    },
    { errorMessageMode: 'message', successMessageMode: 'success' },
  );
